﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Infragistics.Controls.Schedules;

namespace Ivvy_Silverlight.Ivvy
{
    
    public class CustomizedAppointmentDialog : ScheduleDialogFactoryBase
    {
        public override ActivityTypes SupportedActivityDialogTypes
        {
            get { return ActivityTypes.Appointment; }
        }

        public override FrameworkElement CreateActivityDialog(
            FrameworkElement container,
            XamScheduleDataManager dataManager,
            ActivityBase activity,
            bool allowModifications,
            bool allowRemove)
        {
            switch (activity.ActivityType)
            {
                case ActivityType.Appointment:
                    {
                        Customized_Appointment_Dialog MyCustomized_Appointment_Dialog = new Customized_Appointment_Dialog(activity, dataManager, container);                        
                        return MyCustomized_Appointment_Dialog;                       
                    }
                default:
                    {
                        // Return null for unsupported activity types.
                        return null;
                    }
            }
        }//public override FrameworkElement CreateActivityDialog(

        

    }//public class CustomizedAppointmentDialog : ScheduleDialogFactoryBase

}//namespace Ivvy_Silverlight.Ivvy
